<?php
$this->breadcrumbs=array(
	Yii::t('main','Invoices')=>array('invoice/'),
	$model->username,
);

$this->menu=array(
	//array('label'=>Yii::t('main','List'), 'url'=>array('index')),
	//array('label'=>Yii::t('main','View'), 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>Yii::t('main','Manage'), 'url'=>array('invoice/')),
);
?>

<?php if ($showPreview!=2) :?>

<h1><?php echo Yii::t('main','Invoice'); ?></h1>

<?php echo $this->renderPartial('/invoice/_form', array('model'=>$model,'showPreview'=>$showPreview)); ?>

<br />
<?php endif; ?>

<?php if ($showPreview) {
	$this->widget('WInvoice', array(
		'model'=>$model,
	));
} ?>